<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>在线用户列表</title>
  <link rel="stylesheet" type="text/css" th:href="@{/css/manageadmin.css}" />
</head>
<body>
<div class="place">
  <span>位置：</span>
  <ul class="placeul">
    <li><a th:href="@{/index}">首页</a></li>
    <li>用户在线列表</li>
  </ul>
</div>
<div class="rightinfo">
  <table class="imgtable">
    <thead>
    <tr>
      <th>用户登录名</th>
      <th>用户真实姓名</th>
      <th>用户角色</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user : ${onlineUsers}">
<!--      登录名-->
      <td th:text="${user.value.userLogname}"></td>
      <td th:text="${user.value.userRealname}"></td>
      <td>
        <span th:if="${user.value.userRole == 3}">普通用户</span>
        <span th:if="${user.value.userRole == 2}">企业管理员</span>
        <span th:if="${user.value.userRole == 1}">系统管理员</span>
      </td>
      <td>
        <a href="#" class="tablelink">强制下线</a>
      </td>
    </tr>
    </tbody>
  </table>
</div>
</body>
</html>